﻿;;
;; MOVE
;;-----------------------------------------------


;;
;; Mouse
;;-----------------------------------------------
(global-set-key (kbd "<mouse-1>") 'mouse-set-point)
(global-set-key (kbd "<down-mouse-1>") 'mouse-drag-region)
(global-set-key (kbd "<mouse-2>") 'mouse-yank-at-click)
(require 'mouse-copy)
(global-set-key [M-down-mouse-1] 'mouse-drag-secondary-pasting)
(global-set-key [M-S-down-mouse-1] 'mouse-drag-secondary-moving)
(setq mouse-yank-at-point t)

;;
;; EDIT
;;-----------------------------------------------
(require 'redo+)
(global-set-key (kbd "M-:") 'redo)

;; 行首 C-k 删除整行
(setq-default kill-whole-line t)

(require 'smart-operator)

; delete seleted text when typing
(delete-selection-mode 1)

; highlight current line
(global-hl-line-mode 1)

; highlight brackets
(show-paren-mode t)

;; Line numbering
(setq linum-format "%4d")

(require 'dot-mode)
(add-hook 'find-file-hooks 'dot-mode-on)
